#pragma once

class CClientTreeView : public CTreeView
{
public:
	CClientTreeView(void);
	DECLARE_DYNCREATE(CClientTreeView)

	void UpdateFriendsList(char *wParam,LPARAM lParam);

	~CClientTreeView(void);

	CTreeCtrl & userListTree;
	CImageList imageList;
	HTREEITEM m_ParentItem;

	CPtrList m_ClientNameList;

protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);

	afx_msg void OnRButtonDown(NMHDR* pNMHDR, LRESULT* pResult);
	
	DECLARE_MESSAGE_MAP()
};
